<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>



<rich:modalPanel 
	id="forPanelMaterialAnexo"
 	zindex="9990"
 	width="200" height="450" 
  	minHeight="170" minWidth="515">

	<f:facet name="header">
		<h:outputText value="Anexo de material"></h:outputText>
	</f:facet>
	 <a4j:keepAlive beanName="mbeanCadastroMaterial"/>
	<a4j:form id="frmMaterialAnexo1">


		
			

			<a4j:commandButton 
					value="Voltar" 
					styleClass="botoes" 
					reRender="botaoAdicionarAnexo"
					onclick="Richfaces.hideModalPanel('forPanelMaterialAnexo'); "/>



<h:inputText id="desc222" value="#{mbeanCadastroMaterial.dscricaoAnexo}" maxlength="100" size="20" > 
				
    </h:inputText>



						
			

				<rich:fileUpload  
					id="botaoAdicionarAnexo"
					addControlLabel="Adicionar..."
					 clearAllControlLabel="Remover"  
					uploadButtonClass="hiddenbutton"
					doneLabel="Pronto"
					maxFilesQuantity="1"
					noDuplicate="true" 
					cancelEntryControlLabel="Parar"  
                    uploadControlLabel="Transferir"       
                    transferErrorLabel="Erro ao transferir arquivo, tente novamente!"          
                    progressLabel="Transferindo..." 
					onuploadcomplete="Richfaces.hideModalPanel('modalPanelMaterialAnexo');"				
					fileUploadListener="#{mbeanCadastroMaterial.doFileUploaded}"> 
               	</rich:fileUpload>
	</a4j:form>

</rich:modalPanel>
